<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Gold Bach Conjecturer</title>
  <script>
 function CaptalizeFirstLetter(sentence){
  var sentenceArr = sentence.split(' ');

  for (var i = 0; i < sentenceArr.length; i++)
  {
    
     sentenceArr[i] = sentenceArr[i].slice(0,1).toUpperCase() + sentenceArr[i].slice(1);
  }
   
  return sentenceArr.join(' ');
}
var sentence = "i love javascript very much";
console.log(CaptalizeFirstLetter(sentence));
  </script>
</head>
<body>
  
</body>
</html>